package com.example.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {
    @BindView(R.id.lv)
    ListView mListView;
    List<String>mStringList =new ArrayList<>();

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        initDate();
    }

    private void initDate() {
        for (int i = 1; i <= 60; i++) {
            mStringList.add("" + i);
        }
          ListViewAdapter listViewAdapter = new ListViewAdapter(mStringList, MainActivity.this);
          mListView.setAdapter(listViewAdapter);
    }

}
